package com.shanzhe.eshop.common.json;

import com.alibaba.fastjson.JSONObject;

/**
 * @Author yinwei
 * @create 2021/9/30
 * @Version 1.0
 * @desc json表达式上下文
 */
public class JsonExpressionContext {

    /**
     * 目标json
     */
    private JSONObject targetJson;
    /**
     * 当前节点
     */
    private JSONObject currentJsonNode;

    public JsonExpressionContext(JSONObject targetJson) {
        this.targetJson = targetJson;
    }

    public JSONObject getCurrentJsonNode() {
        return currentJsonNode;
    }

    public void setCurrentJsonNode(JSONObject currentJsonNode) {
        this.currentJsonNode = currentJsonNode;
    }

    public JSONObject getTargetJson() {
        return targetJson;
    }
}
